package com.qianji.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author 钟丽诗
 * @Date 2021.3.12
 */

@ApiModel("新增用户属性类")
@Data
public class UserAddVO implements Serializable {

    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty("用户名")
    private String userName;

    @NotBlank(message = "真实姓名不能为空")
    @ApiModelProperty("真实姓名")
    private String realName;

    @NotBlank(message = "密码不能为空")
    @ApiModelProperty("密码")
    private String password;

    @NotBlank(message = "身份证号码不能为空")
    @ApiModelProperty("身份证号码")
    private String idCard;

    @NotBlank(message = "银行卡号码不能为空")
    @ApiModelProperty("银行卡号码")
    private String bankCard;

    @NotBlank(message = "银行卡名称不能为空")
    @ApiModelProperty("银行卡名称")
    private String bankName;

    @NotBlank(message = "联系电话不能为空")
    @ApiModelProperty("联系电话")
    private String phone;

    @NotNull(message = "用户状态不能为空，0代表正常   1代表注销")
    @ApiModelProperty(value = "用户状态",example = "0")
    private Integer status;

    @NotBlank(message = "用户appKey不能为空")
    @ApiModelProperty("用户appKey")
    private String appKey;

    @NotBlank(message = "用户secretKey不能为空")
    @ApiModelProperty("用户secretKey")
    private String secretKey;

    @NotBlank(message = "用户住址不能为空")
    @ApiModelProperty("用户住址")
    private String address;

    @Email(message = "邮箱格式不正确")
    @ApiModelProperty("邮箱")
    private String email;

    @NotBlank(message = "用户所住城市不能为空")
    @ApiModelProperty("用户所住城市")
    private String city;

    @NotBlank(message = "用户所在省份不能为空")
    @ApiModelProperty("用户所在省份")
    private String province;

    @NotBlank(message = "权限不能为空")
    @ApiModelProperty("权限")
    private String roles;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

}
